<link rel="stylesheet" type="text/css" href="<?= $base_url ?>css/rmis/rmis.css"/>
<div>
<h3>Research > Content </h3>
<div id="contents">
	<p id="txttitle">
		<?php 
			if($paper[0]['Res_Type'] == 1)
				echo 'graduate research';
			else
				echo 'undergraduate research';
		?>
	</p>
	<p id="papertitle">
		<?php echo $paper[0]['Res_Title'] ?>
	</p>
	<p id = "txttitle1">
		basic details
	</p>
	<div id = "details">
		<table style="width:100%;">
			<tr>
				<td id = "col">DEPARTMENT</td>
				<td id = "col1"><?php 
						switch ($paper[0]['Res_Department']) {
							case 'CS':	echo "computer science";
								break;
							case 'IT':	echo "information technology";
								break;
							case 'IS':	echo "information science";
								break;
						}
					?>
				</td>
			</tr>	
			<tr>
				<td id = "col" rowspan="<?php sizeof($auth[0]) ?>">authors</td>
				<td id = "col1"><?php 
							foreach ($auth as $a) {
								foreach ($a as $b) {
									echo $b;
									echo "<br>";
								}
							}
					?>
				</td>
			</tr>
			<tr>
				<td id = "col">field</td>
				<td id = "col1"><?php if ($field != 0)
									echo $field[0]['FId_Name'];
								else echo "none";
					?>
				</td>
			</tr>
			<tr>
				<td id = "col">status</td>
				<td id = "col1"><?php if ($paper[0]['Res_Status'] == 0)
									echo "ongoing";
								else echo "finished";
					?>
				</td>
			</tr>
			<tr>
				<td id = "col">type of publication</td>
				<td id = "col1"><?php echo $paper[0]['Res_Publication_Type']; ?>
				</td>
			</tr>
			<tr>
				<td id = "col">Date Finished</td>
				<td id = "col1"><?php echo date("M Y",strtotime($paper[0]['Res_Date_Finished'])); ?>
				</td>
			</tr>
			<tr>
				<td id = "col">Date published</td>
				<td id = "col1"><?php echo $paper[0]['Res_Date_Published']; ?>
				</td>
			</tr>
			<tr>
				<td id = "col">Date uploaded</td>
				<td id = "col1"><?php echo $paper[0]['Res_Date_Uploaded']; ?>
				</td>
			</tr>
		</table>
		<div id="abstract">
			<p id = "txttitle1">ABSTRAct</p>
			<p><?php echo $paper[0]['Res_Abstract']; ?></p>
		</div>
	</div>
</div>
</div>